import request from '@/utils/request'

// 登录接口
export const reqLogin = data => request({
  method: 'post',
  url: 'sys/login',
  data
})

// 获取个人基本资料
export const reqGetUserInfo = () => request({
  method: 'post',
  url: 'sys/profile'
})

// 获取员工基本信息
export const reqGetUserDetailById = id => request({
  method: 'get',
  // url: `/sys/user/${id}`
  url: '/sys/user/' + id
})

// 获取简单员工列表
export const reqGetEmployeeSimple = () => request({
  method: 'get',
  url: '/sys/user/simple'
})

